home *** CD-ROM | disk | FTP | other *** search
- Path: bcarh8ab.bnr.ca!hwt
- From: hwt@bnr.ca (Henry Troup)
- Newsgroups: comp.lang.c
- Subject: Re: How to get a random string each time??
- Date: 21 Feb 1996 22:04:35 GMT
- Organization: Northern Telecom Nortel Broadband Networks, Ottawa, Canada
- Message-ID: <4gg4tj$s18@bcarh8ab.bnr.ca>
- References: <4fh5od$qq0@news.nevada.edu> <4g4c5m$tlb@news.nevada.edu>
- Reply-To: hwt@bnr.ca
- NNTP-Posting-Host: bcarhd7b.bnr.ca
-
- In article <4g4c5m$tlb@news.nevada.edu>,
- Clapton Chan <chancl@nevada.edu> wrote:
- ...
- > for(i=0; i<10; i++) {
- ...
- > if...
- > break;
- > }
- >
- ...
- > j = j%i; /* this handles early program exit */
-
- I know a couple of people who would jump up and down and yell about
- access to a loop index variable outside of the loop. And I know a
- language that made it impossible.
-
- I guess in C this is well defined, but it's still on my private list of
- things not to do again.
- --
- Henry Troup - hwt@bnr.ca (Canada) - Nortel is not committed to anything I say
- Leap years are years where the year number is a multiple of four with the
- exception: If a year is a multiple of 100, then it is only a leap year if it
- is also a multiple of 400. For example, 1900 was not a leap year, but 2000 is.
-